package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.ProContractMapper;
import com.ruoyi.project.domain.ProContract;
import com.ruoyi.project.service.IProContractService;

/**
 * contractService业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-01
 */
@Service
public class ProContractServiceImpl implements IProContractService 
{
    @Autowired
    private ProContractMapper proContractMapper;

    /**
     * 查询contract
     * 
     * @param id contract主键
     * @return contract
     */
    @Override
    public ProContract selectProContractById(Long id)
    {
        return proContractMapper.selectProContractById(id);
    }

    /**
     * 查询contract列表
     * 
     * @param proContract contract
     * @return contract
     */
    @Override
    public List<ProContract> selectProContractList(ProContract proContract)
    {
        return proContractMapper.selectProContractList(proContract);
    }

    /**
     * 新增contract
     * 
     * @param proContract contract
     * @return 结果
     */
    @Override
    public int insertProContract(ProContract proContract)
    {
        return proContractMapper.insertProContract(proContract);
    }

    /**
     * 修改contract
     * 
     * @param proContract contract
     * @return 结果
     */
    @Override
    public int updateProContract(ProContract proContract)
    {
        return proContractMapper.updateProContract(proContract);
    }

    /**
     * 批量删除contract
     * 
     * @param ids 需要删除的contract主键
     * @return 结果
     */
    @Override
    public int deleteProContractByIds(Long[] ids)
    {
        return proContractMapper.deleteProContractByIds(ids);
    }

    /**
     * 删除contract信息
     * 
     * @param id contract主键
     * @return 结果
     */
    @Override
    public int deleteProContractById(Long id)
    {
        return proContractMapper.deleteProContractById(id);
    }
}
